﻿using System;
using lite;
namespace iSun.Model
{
    /// <summary>
    /// 用于管理`表字段
    /// </summary>
    [Serializable]
    [lite.Table]
    [iSun.Model.Table("SysTableFKey", "")]
    public class SysTableFKey : BaseEntity
    {   

        public SysTableFKey() { }
        [lite.Column]
        public string FieldName
        {
            get;
            set;
        }

        [lite.Column]
        public string FKTableName
        {
            get;
            set;
        }

        [lite.Column]
        public string FKFieldName
        {
            get;
            set;
        }
    }

    /// <summary>
    /// 系统实体类加载定义
    /// </summary>
    [Serializable]
    [lite.Table(Name = "SysLib")]
    [Table("SysLib", "LibID")]
    public class SysLib : BaseEntity
    {
        [Column, PK]
        public Guid? LibID
        {
            get;
            set;
        }

        [Column]
        public String LibName
        {
            get;
            set;
        }

        [Column]
        public string LibType
        {
            get;
            set;
        }
    }


    /// <summary>
    ///  明细表数据源设置类
    /// </summary>
    public class SysDetailsItem
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public string ID { get; set; }
        /// <summary>
        /// 明细表名
        /// </summary>
        public string DetailsTableName { get; set; }
        /// <summary>
        /// 主键字符串[可以多个主键用‘,‘,分开]
        /// </summary>
        public string PrimaryKey { get; set; }
    };
}
